﻿using NUnit.Framework;

namespace ProjetoComperio.Test.ComperioFramework.Tracking
{
    [TestFixture]
    public class TrackedEntityTest
    {
        //[Test]
        //public void TestTrackedEntityConstructorAndFactoryType()
        //{
        //    Assert.AreEqual(TrackedEntity<Person>.TrackedApplicationFactory().GetType(), new TrackedEntity<Person>().GetType());

        //}
        //[Test]
        //public void TestTrackedEntityConstructorAndFactory()
        //{
        //    var objectUsingFactory = TrackedEntity<Person>.TrackedApplicationFactory();
        //    var objectUsingConstructor = new TrackedEntity<Person>();
        //    Assert.IsTrue(objectUsingConstructor.Entity != null && objectUsingFactory.Entity != null);
        //    Assert.IsTrue(objectUsingConstructor.PropertiesTracking != null && objectUsingFactory.PropertiesTracking != null);


        //}

        //[Test]
        //public void TestTrackedEntityPropertyTracking()
        //{
        //    TrackedEntity<Person> trackEntity = TrackedEntity<Person>.TrackedApplicationFactory();
        //    foreach (PropertyInfo item in trackEntity.Entity.GetType().GetProperties())
        //        Assert.IsNotNull(trackEntity.PropertiesTracking[item.Name]);

        //}
    }
}
